package com.zz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zz.common.R;
import com.zz.entity.ApplicationAuditing;
import org.apache.ibatis.annotations.Update;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/**
 * 用户报名活动申请
 * @author 朱彦燕
 */
public interface ApplicationAuditingService extends IService<ApplicationAuditing> {

    /**
    * 同意活动报名申请
    * */
    R<String> agreeApply(@RequestBody ApplicationAuditing applicationAuditing);

    /**
     * 不同意活动报名申请
     * */
    R<String> notAgreeApply(@RequestBody ApplicationAuditing applicationAuditing);

    /**
    * 分页展示报名申请列表
    * */
    R<Page> applyList(int page, int pageSize, HttpServletRequest request);


}
